Skip to content

Conversation

AtofStryker
Copy link
Contributor

@AtofStryker AtofStryker commented Sep 22, 2025

  • Closes N/A

Additional details

changes @packages/root to bundle the root package.json so @packages/root can be an true installable package. This means that regardless of where the package is installed, it will always be able to "discover" the root package.json, which is used in a few packages, such as the config, types, etc.

What this means, is instead of trying to discover the root package relative to itself, we now directly bundle the root package.json into the @packages/root bundle via rollup

CommonJS bundle file

Screenshot 2025-09-30 at 1 39 30 PM

ESM bundle file

Screenshot 2025-09-30 at 1 39 28 PM

we currently need both outputs in order to consume ESM in the browser via vite (app and launchpad) and CJS to consume the package in the node process (server, data-context, etc)

This step is crucial in order to make the other packages bundle from source.

Steps to test

How has the user experience changed?

PR Tasks


Note

Introduce a built @packages/root that bundles the repo’s package.json (CJS+ESM) with build tooling updates, CI filter tweaks, and dependency bumps.

  • @packages/root:
    • Convert to TypeScript (index.ts) and bundle root package.json via Rollup, outputting index.js (CJS) and index.mjs (ESM).
    • Add rollup.config.mjs, tsconfig.json, build scripts, .gitignore, and README; update package.json (description, scripts, devDeps, module).
  • Build Tooling:
    • In scripts/binary/build.ts, write root package.json version during build; remove version update from packageElectronApp.
  • CI:
    • Update CircleCI workflow branch filters to use chore/bundle_package_root.
  • Docs:
    • Mark packages/root as completed in guides/esm-migration.md; adjust BUGBOT.md package note.
  • Dependencies:
    • Add @rollup/plugin-json; bump rollup to 4.52.0 (with platform bins); add typescript@^5.6.3.

Written by Cursor Bugbot for commit 8093bd8. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

@AtofStryker AtofStryker force-pushed the chore/bundle_package_root branch 2 times, most recently from 8033db1 to ba709b7 Compare September 22, 2025 14:23
Copy link

cypress bot commented Sep 22, 2025

cypress    Run #65947

Run Properties:  status check passed Passed #65947  •  git commit e318df5e03: chore: bundle the root package.json as an installable package
Project cypress
Branch Review chore/bundle_package_root
Run status status check passed Passed #65947
Run duration 21m 02s
Commit git commit e318df5e03: chore: bundle the root package.json as an installable package
Committer Bill Glesias
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 4
Tests that did not run due to a developer annotating a test with .skip  Pending 28
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 791
View all changes introduced in this branch ↗︎
UI Coverage  63.16%
  Untested elements 26  
  Tested elements 48  
Accessibility  99.02%
  Failed rules  0 critical   3 serious   1 moderate   0 minor
  Failed elements 19  

@AtofStryker AtofStryker force-pushed the chore/bundle_package_root branch from ba709b7 to e318df5 Compare September 30, 2025 17:43
cursor[bot]

This comment was marked as outdated.

AtofStryker and others added 3 commits September 30, 2025 17:13
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
@AtofStryker AtofStryker merged commit f9c3f75 into develop Sep 30, 2025
10 of 18 checks passed
@AtofStryker AtofStryker deleted the chore/bundle_package_root branch September 30, 2025 21:15
cacieprins pushed a commit that referenced this pull request Oct 1, 2025
* chore: bundle the root package.json as an installable package

* Update packages/root/README.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update guides/esm-migration.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

* Update packages/root/README.md

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>

---------

Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 7, 2025

Released in 15.4.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v15.4.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants